<?php 
// wymagane w layout
//echo $this->Section->main();
?>

<div class="content-homenpage">
	<?php echo $this->element('carousel',array('plugin' => 'store',
		'items'=>$this->Store->products(4,array('limit'=>12))
		,'group_id'=>4
		,'params'=>array('width'=>190,'height'=>190,'padding'=>10,'margin'=>10,'border'=>1)
		));?>	
	<div class="clr"></div>	
</div>	
		
<div class="clr"></div>
<div class="content-homenpage">
	<div id="left-column">
		<?php echo $this->element('left_column')?>		
	</div>
	
	<div class="right-store-column search-bg">
		<?php echo $this->element('search_more',array('plugin'=>'store'))?>
	</div>
	
	
	<div class="right-store-column">
		<h2 class="center"><?php __d("store.moon","Exclusive Jewellery")?></h2>
		<?php echo $this->element('exclusive',array('plugin' => 'store',
			'items'=>$this->Store->products(1,array('limit'=>18))
			,'group_id'=>1
			,'params'=>array('width'=>190,'height'=>190,'padding'=>10,'margin'=>5,'border'=>1)
			));?>
		
		<div class="clr"></div>	
	</div>
	<div class="right-store-column none-background" style="padding-top: 0px; padding-bottom: 0px;">
		<div class="corners homepage-groups-left">
			<h2 class="center"><?php __d("store.moon","Casual")?></h2>
			<p class="group-controls jshowoff-1-controls">
			<?php echo $this->Html->link(__('More',true),array('plugin'=>'store','controller'=>'products','action'=>'display','casual'),array('class'=>'button corners'))?>
			</p>
			<?php echo  $this->Html->link($html->image(HOST.'/homepage-groups-left.jpg'), array('plugin'=>'store','controller'=>'products','action'=>'display','casual'),array('escape'=>false, 'title'=>''));?>		
		</div>
		<div class="corners homepage-groups-midle">
			<h2 class="center"><?php __d("store.moon","Special Occasion")?></h2>
			<p class="group-controls jshowoff-1-controls">
			<?php echo $this->Html->link(__('More',true),array('plugin'=>'store','controller'=>'products','action'=>'display','special-occasion'),array('class'=>'button corners'))?>
			</p>			
			<?php echo  $this->Html->link($html->image(HOST.'/homepage-groups-midle.jpg'), array('plugin'=>'store','controller'=>'products','action'=>'display','special-occasion'),array('escape'=>false, 'title'=>''));?>
		</div>					
		<div class="corners homepage-groups-right">
			<h2 class="center"><?php __d("store.moon","Wedding Collection")?></h2>
			<p class="group-controls jshowoff-1-controls">
			<?php echo $this->Html->link(__('More',true),array('plugin'=>'store','controller'=>'products','action'=>'display','wedding-collection'),array('class'=>'button corners'))?>
			</p>
			<?php echo  $this->Html->link($html->image(HOST.'/homepage-groups-right.jpg'), array('plugin'=>'store','controller'=>'products','action'=>'display','wedding-collection'),array('escape'=>false, 'title'=>''));?>
		</div>
		<div class="clr"></div>	
	</div>
</div>

<?php if($session->check('Auth.User.id')){?>
<?php echo $this->element('toolbar_actions_main',array('plugin'=>'store','toolbar'=>'product'))?>
<?php }?>